// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from "vue";
import App from "./App";
import router from "./index";
import "./plugins/element.js";
import "element-ui/lib/theme-chalk/index.css";
import axios from "axios";
// import './util/rem'
import VueClipboard from 'vue-clipboard2'
Vue.use(VueClipboard)
// 引入全局css
// import './assets/css/global.css'
//
// import elemntui from 'element-ui'
// import 'element-ui/lib/theme-default/index.css'
// import './plugins/element.js'
// import 'element-ui/lib/theme-chalk/index.css'
// axios.defaults.baseURL = 'http://10.240.184.44:5000/api/'
// 线上
// axios.defaults.baseURL = 'http://10.246.44.100:80/'
// axios.defaults.baseURL = 'process.env.API'



// 将axios挂载到vue原型上
Vue.prototype.$https = axios;

Vue.filter("dateFormat", function(originVal) {
  const dt = new Date(originVal);
  const y = dt.getFullYear();
  const m = (dt.getMonth() + 1 + "").padStart(2, "0");
  const d = (dt.getDate() + "").padStart(2, "0");

  const hh = (dt.getHours() + "").padStart(2, "0");
  const mm = (dt.getMinutes() + "").padStart(2, "0");
  // const ss = (dt.getSeconds() + '').padStart(2, '0')
  return `${y}.${m}.${d} ${hh}:${mm}`;
});
// Vue.config.productionTip = true
/* eslint-disable no-new */
new Vue({
  router,
  render: h => h(App)
}).$mount("#app")
